package com.praveen.twu.item;

/**
 * Created by praveen on 19/6/14.
 */
public class Book {
    private String isbn;
    private String name;
    private String author;
    private int year;

    public Book(String isbn, String name, String author, int year) {
        this.isbn = isbn;
        this.name = name;
        this.author = author;
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public int getYear() {
        return year;
    }

    public String getIsbn() {
        return isbn;
    }

    public String toString() {
        return "\nISBM: " + isbn + "\nName: " + name + "\nAuthor: " + author + "\nYear published: " + year;
    }
}
